# -*- coding: utf-8 -*-
# @Time    : 2022/7/16 8:43
# @Author  : vvh
# @Email   : 2647167477@qq.com
# @File    : index_page.py
# @Software: PyCharm
from selenium.webdriver.common.by import By
from pages.base_pageage import BasePage


class IndexPage(BasePage):
    """首页类"""
    # 定位器
    goods_btn_locator = (By.LINK_TEXT, "产品")

    def switch_goods_page(self):
        """在产品切换到添加产品页"""
        index = BasePage(self.driver)
        index.find(self.goods_btn_locator).click()
